export const useFilterPath = (path) => {
  // 过滤掉 chat、history 路径后面的路径
  let currentPath = path
  // console.log(currentPath)
  // 着这里处理三级路由
  if (path.includes('chat/') || path.includes('notices/') || path.includes('history/')) {
    const pathArr = path.split('/').splice(0, 4).join('/')
    currentPath = pathArr
  }
  return currentPath
}